package com.sherlochao.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sherlochao.dao.SharePhotoDao;
import com.sherlochao.model.SharePhoto;
import com.sherlochao.service.SharePhotoService;

@Transactional
@Service("sharePhotoService")
public class SharePhotoServiceImpl implements SharePhotoService{
	
	@Resource
	private SharePhotoDao sharePhotoDao;

	@Override
	public SharePhoto get(String id) {
		return sharePhotoDao.get(id);
	}

	@Override
	public String save(SharePhoto entity) {
		return sharePhotoDao.save(entity);
	}

	@Override
	public void delete(String id) {
		sharePhotoDao.delete(id);
	}

	@Override
	public List<SharePhoto> getSharePhotoByShareTalkId(String shareTalkId) {
		return sharePhotoDao.getSharePhotoByShareTalkId(shareTalkId);
	}
	
	

}
